package com.shengwei.truck.driver.bean;

public class MessageItem {
    public String id;
    public int type = 0;
    public String content;
    public long createTime;
    public int isRead;  //0未读，1已读
    public String params;
    public String title;


    public String getContent() {
        return content;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setType(int type) {
        this.type = type;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public int getType() {
        return type;
    }

    /**
     * 根据 type类型代码换成 文字
     * @return
     */
    public String getStrType() {
        String strType = null;
        switch (type)
        {
            case 0:
                strType = "【系统】";
                break;
            case 1:
                strType = "【系统】";
                break;
            case 2:
                strType = "【转派】";
                break;
            case 3:
                strType = "【共享】";
                break;
        }
        return strType;
    }


}